package com.usooft.metaTalent.core.teach.mapper;

import com.usooft.metaTalent.core.teach.entity.Course;
import com.usooft.metaTalent.core.teach.query.CourseQuery;
import com.usooft.metaTalent.core.teach.wrapper.CourseWrapper;
import java.lang.Long;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseMapper {
    int add(Course course);

    int update(Course course);

    Course get(Long id);

    List<CourseWrapper> list(CourseQuery query);

    int count(@Param("filter") CourseQuery.Filter filter);
}
